package org.hxzon.demo.scala.matchdemo

object StringMatch {
  def activity(day: String) {
    day match {
      case "Sunday" => println("Eat,sleep,repeat...")
      case "Saturday" => println("Hangout with friends...")
      case "Monday" => println("code and fun...")
      case "Friday" => println("read a good book...")
    }
  }
  def main(args: Array[String]): Unit = {
    List("Monday", "Sunday", "Saturday").foreach { activity }
    //code and fun...
    //Eat,sleep,repeat...
    //Hangout with friends...
  }
}
